-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added simple Redis storage #38
Conversation
@guillaumepotier thanks very much for making this pull request! Can you make this storage system pass |
- fixes 'botkit undefined' error when using webhooks and slash commands
Hi, great to have some tests. I'm looking at them right now. I noticed thanks to the tests that {
"id1": {"id": "id1", "foo": "bar"},
"id2": {"id": "id2", "bar": "baz"}
} I'll update my |
Hi there,
Following #37 here is a humble submission for a simple Redis storage.
I'm just starting with botkit (and thanks a lot) and I already know I cannot use file storage since my bots would live in various VMs.
I use node redis (
npm install redis --save
) and hashes sets (that have O(1) complexity likeSET
andGET
and is a lot easier forall()
method O(N) on the set vs. O(N) on the entire database forKEYS
).This is not tested in production (yet) and should not make any BC Break (just moved
simple_storage.js
into subdir if some other storages are going to be in the repo).Tried to update a bit the README with my french background..
Please let me know if some things are wrong or missing, won't change my life if not merged, but could be nice for a broader adoption of the lib.
Best